package hu.bme.mit.rifl.sde.extensions;

import hu.bme.mit.rifl.datamodel.Order;
import eu.sensoria_ist.casetool.core.ext.SensoriaTool;
import eu.sensoria_ist.casetool.core.ext.SensoriaToolFunction;
import eu.sensoria_ist.casetool.core.ext.SensoriaToolFunctionParameter;
import eu.sensoria_ist.casetool.core.ext.SensoriaToolFunctionReturns;

@SensoriaTool(name="Merger", description="Node for merging two orders.", categories="SDEExtensions")
public interface Merger {
		@SensoriaToolFunction(description="Generates a new Order.")
		@SensoriaToolFunctionReturns(description="The order to be processed.")
		public Order merge(@SensoriaToolFunctionParameter(description="Order1")Order orderServed,
						   @SensoriaToolFunctionParameter(description="Order2")Order orderBooked); 
}